package org.example.service;

import org.example.bean.Category;

import java.util.List;

public interface CategoryService {
    public Category addCategory(Category category);
    //根据状态查询分类信息
    public List<Category> getCategories(Integer categoryStatus);
    //根据分类id查询分类信息
    public Category getCategoryById (Integer categoryId);
    //根据id修改类别的状态
    public Category updateCategoryStatus(Integer categoryId,Integer categoryStatus);
    //更新分类信息
    public Category updateCategory(Category category);
}
